package com.testfileupload.uploadimg.design.chainofresponsibility.defind;

public class Client {
    public static void main(String[] args) {
        ConcreateHandler1 concreateHandler1 = new ConcreateHandler1();
        ConcreateHandler2 concreateHandler2 = new ConcreateHandler2();
        ConcreateHandler3 concreateHandler3 = new ConcreateHandler3();
        concreateHandler1.setNextHanler(concreateHandler2);
        concreateHandler2.setNextHanler(concreateHandler3);

        concreateHandler1.handleMessage(new Request());
    }
}
